package com.wxg.tuan.controller.admin;

import com.wxg.tuan.result.Result;
import com.wxg.tuan.service.OrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/order")
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("{id}")
    public Result getById(@PathVariable String id){

        return orderService.getById(id);
    }




}
